home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 7
/
Apprentice-Release7.iso
/
Environments
/
Clean 1.2.4
/
StdEnv
/
_SystemEnum.dcl
< prev
next >
Wrap
Text File
|
1996-12-23
|
940b
|
37 lines
definition module _SystemEnum
// ****************************************************************************************
// Concurrent Clean Standard Library Module Version 1.1
// Copyright 1995 University of Nijmegen
// ****************************************************************************************
/*
This module must be imported if dotdot expressions are used
[from .. ] -> _from from
[from .. to] -> _from_to from to
[from, then .. ] -> _from_then from then
[from, then .. to] -> _from_then_to from then to
*/
from StdClass import Enum, IncDec, Ord
from StdBool import not
import StdInt
export IncDec Int
export Ord Int
export Enum Int
import StdChar
export IncDec Char
export Ord Char
export Enum Char
_from :: a -> [a] | IncDec , Ord a
_from_to :: !a !a -> [a] | Enum a
_from_then :: a a -> [a] | Enum a
_from_then_to :: !a !a !a -> [a] | Enum a
_lteq a b :== not (b < a)
_minus a b :== a - b